package com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00103;

import com.blankj.utilcode.util.ToastUtils;
import com.example.modelviewpresenter.Presenter.BasterPresenter;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00102.SmileDay00102Bean;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00102.SmileDay00102Callbcak;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00102.SmileDay00102Contion;

import java.util.List;

/**
 * 作者:二徒
 * 时间：2021/10/28- 11:45
 * 功能实现：
 */
public class TeenagerDay00103Presenter  extends BasterPresenter<TeenagerDay00103Contion.vier,TeenagerDay00103Contion.moder> {


    public TeenagerDay00103Presenter(TeenagerDay00103Contion.vier iew, TeenagerDay00103Contion.moder asd) {
        super(iew, asd);
    }

    public void teenager(String name){
        asd.getmoder(name, new TeenagerDay00103Callback() {
            @Override
            public void suees(List<TeenagerDay00103Bean.DataBean> dataBeans) {
                iew.getvier(dataBeans);
            }

            @Override
            public void filai(String uet) {
                ToastUtils.showShort(""+uet);
            }
        });
    }
}
